/*    */ package com.zimbra.cs.account.accesscontrol;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public enum RightClass
/*    */ {
/* 22 */   ALL, 
/* 23 */   ADMIN, 
/* 24 */   USER;
/*    */   
/*    */   private RightClass() {}
/*    */   
/* 28 */   public static RightClass fromString(String s) throws ServiceException { try { return valueOf(s);
/*    */     } catch (IllegalArgumentException e) {
/* 30 */       throw ServiceException.INVALID_REQUEST("unknown right class: " + s, e);
/*    */     }
/*    */   }
/*    */   
/*    */   public static String allValuesInString(String delimiter) {
/* 35 */     StringBuffer sb = new StringBuffer();
/*    */     
/* 37 */     for (RightClass value : values()) {
/* 38 */       if (sb.length() > 0) {
/* 39 */         sb.append(delimiter);
/*    */       }
/* 41 */       sb.append(value);
/*    */     }
/* 43 */     return sb.toString();
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/accesscontrol/RightClass.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */